/LUCKY BLOCK DIAMOND

/blocks and items
ID=beacon
ID=emerald_block@luck=1
ID=lucky:lucky_block@luck=-1
ID=dirt@luck=-1
ID=beacon,NBTTag=(display=(Name="$bFor #pName"))@luck=2
ID=sponge,damage=#rand(0,1)@luck=0
ID=dragon_egg,NBTTag=(ench=[(id=20,lvl=1)],HideFlags=1,display=(Name="$5Enderman's Mom",Lore=["$dHit an cow,","$5to make it poop!"]))@luck=1
ID=noteblock,amount=#rand(5,20)@luck=0
ID=gold_block,amount=5@luck=1
ID=red_flower,damage=#rand(0,8)@luck=0
ID=apple,NBTTag=(ench=[(id=33,lvl=798)]@luck=-1
ID=cookie,amount=142@luck=0
ID=golden_apple,damage=1,amount=128,NBTTag=(display=(Name="$cThis is not for #pName"))@luck=1

/Falling Sand Entities
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=web),posY=#bPosY+5;group(posY=#bPosY+10;posY=#bPosY+15;posY=#bPosY+20;posY=#bPosY+25;posY=#bPosY+30;posY=#bPosY+35;posY=#bPosY+40;posY=#bPosY+45;posY=#bPosY+50),type=entity,ID=FallingSand,NBTTag=(Block=sand))@luck=0
group(type=fill,ID=air,size=(1,51,1);type=entity,ID=FallingSand,NBTTag=(Block=lucky:lucky_block_diamond),posY=#bPosY+5;group(posY=#bPosY+10;posY=#bPosY+15;posY=#bPosY+20;posY=#bPosY+25;posY=#bPosY+30;posY=#bPosY+35;posY=#bPosY+40;posY=#bPosY+45;posY=#bPosY+50),type=entity,ID=FallingSand,NBTTag=(Block=lucky:lucky_block_diamond))@luck=1
type=entity,ID=FallingSand,NBTTag=(Block=lucky:lucky_block_diamond),amount=40,posOffset=#circleOffset(20,22))


group:#rand(1,5):(ID=diamond_sword,NBTTag=(ench=[(id=34,lvl=10)],display=(Name="$dSpeedrunner's Pickaxe"),AttributeModifiers=[(AttributeName="generic.movementSpeed",Name="speed",Amount=0.2f,Operation=0,UUIDLeast=1,UUIDMost=1)]);ID=leather_helmet,NBTTag=(ench=[(id=0,lvl=1),(id=34,lvl=2)],display=(Name="$dSpeedrunner's Helmet",color=16729291),AttributeModifiers=[(AttributeName="generic.movementSpeed",Name="speed",Amount=0.2f,Operation=0,UUIDLeast=1,UUIDMost=1)]);ID=leather_chestplate,NBTTag=(ench=[(id=0,lvl=1),(id=34,lvl=2)],display=(Name="$dSpeedrunner's Tunic",color=16729291),AttributeModifiers=[(AttributeName="generic.movementSpeed",Name="speed",Amount=0.2f,Operation=0,UUIDLeast=1,UUIDMost=1)]);ID=leather_leggings,NBTTag=(ench=[(id=0,lvl=1),(id=34,lvl=2)],display=(Name="$dSpeedrunner's Legs",color=16729291),AttributeModifiers=[(AttributeName="generic.movementSpeed",Name="speed",Amount=0.2f,Operation=0,UUIDLeast=1,UUIDMost=1)]);ID=leather_boots,NBTTag=(ench=[(id=0,lvl=1),(id=34,lvl=2)],display=(Name="$dSpeedrunner's Boots",color=16729291),AttributeModifiers=[(AttributeName="generic.movementSpeed",Name="speed",Amount=0.2f,Operation=0,UUIDLeast=1,UUIDMost=1)]))@luck=2


/lucky drops
group(ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_sword;ID=diamond_hoe)

group(ID=diamond_pickaxe;ID=torch,amount=200)

group(ID=fish,amount=9;ID=golden_sword,;ID=diamond_axe;ID=diamond_sword;ID=iron_hoe)

group(ID=cooked_porkchop,amount=12;ID=cooked_beef,amount=200)

group(ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_sword;ID=golden_hoe)

type=item,ID=diamond_shovel

group(ID=slimeball,amount=200;ID=diamond_hoe,amount=8;ID=dropper=34;ID=diamond_block,amount=102;ID=lucky:lucky_block,amount=137;ID=fire;ID=flint_and_steel,amount=3;ID=redstone_block,amount=42)

type=item,ID=potion,damage=16388,NBTTag=(CustomPotionEffects=[(Id=0,Amplifier=20,Duration=5400),(Id=6,Amplifier=20),(Id=11,Amplifier=20,Duration=2400),(Id=14,Duration=3600)])

/enchanted items
type=item,ID=diamond_sword,NBTTag=(ench=[(id=16,lvl=6),(id=20,lvl=10),(id=34,lvl=10)])

type=item,ID=diamond_pickaxe,NBTTag=(ench=[(id=32,lvl=10),(id=34,lvl=10),(id=35,lvl=7)])

type=item,ID=diamond_axe,NBTTag=(ench=[(id=35,lvl=6),(id=32,lvl=30),(id=34,lvl=22)])

/explosion and evil
type=explosion,radius=10,fire=false
type=explosion,radius=20,fire=true
type=explosion,radius=15,fire=true

/entites
group(type=entity,ID=Rabbit,amount=40,posOffset=#circleOffset(20,30); \
type=entity,ID=Cow,amount=10,posOffset=#circleOffset(20,30); \
type=entity,ID=Sheep,amount=30,posOffset=#circleOffset(20,30); \
type=entity,ID=LightningBolt,amount=20,posOffset=#circleOffset(20,22))

type=entity,ID=Ghast,NBTTag=(CustomName="$4Better than Bob")
type=entity,ID=Cow,amount=42,posOffset=#circleOffset(2,3)
type=entity,ID=Rabbit,NBTTag=(RabbitType=99,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lKyle",CustomNameVisible=true))@luck=-2

group(type=difficulty,ID=hard;type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBob",CustomNameVisible=true); \
type=entity,ID=CaveSpider,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lCarl",CustomNameVisible=true);type=entity,ID=Enderman,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lEven",CustomNameVisible=true); \
type=entity,ID=LavaSlime,NBTTag=(Size=#rand(6,7),Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lSally",CustomNameVisible=true);type=entity,ID=PigZombie,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lPeter",CustomNameVisible=true); \
type=entity,ID=Slime,NBTTag=(Size=#rand(2,3),Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lMolly",CustomNameVisible=true);type=entity,ID=Witch,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lDinnerbone",CustomNameVisible=true); \
type=entity,ID=Giant,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lCharles",CustomNameVisible=true);type=entity,ID=Skeleton,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBob's Mom",CustomNameVisible=true);  \
type=entity,ID=Zombie,NBTTag=(Equipment=[(id=bow,Count=1,tag=(ench=#luckyBowEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lSmith",CustomNameVisible=true);type=entity,ID=Spider,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lLink",CustomNameVisible=true);  \
type=entity,ID=Blaze,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBilly",CustomNameVisible=true);type=entity,ID=Ghast,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lLily",CustomNameVisible=true);  \
type=entity,ID=Skeleton,NBTTag=(SkeletonType=1,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lWill",CustomNameVisible=true);type=entity,ID=Guardian,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lMinecraft 3.0",CustomNameVisible=true); \
type=entity,ID=Silverfish,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lSarah",CustomNameVisible=true);type=entity,ID=Endermite,NBTTag=(Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$e$lBob",CustomNameVisible=true);  \
type=entity,ID=Endermite,NBTTag=(RabbitType=99,Equipment=[(id=diamond_sword,Count=1,tag=(ench=#luckySwordEnchantments)),(id=diamond_helmet,Count=1,tag=(ench=#luckyHelmetEnchantments)),(id=diamond_chestplate,Count=1,tag=(ench=#luckyChestplateEnchantments)),(id=diamond_leggings,Count=1,tag=(ench=#luckyLeggingsEnchantments)),(id=diamond_boots,Count=1,tag=(ench=#luckyBootsEnchantments))],DropChances=[#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f,#randList(0,2)f],CustomName="$5$lEnderMike",CustomNameVisible=true))@chance=0.1@luck=-2


/random
type=message,ID="Hi, I'm Fred."
type=command,ID="/tellraw @a {text:"<Diamond Sheep #2456998765453> has joined the game."color=light_blue}"
type=command,ID="/tellraw @a {text:"Goto www.findminecraft.com for 38 diamonds!"}"
type=command,ID="/tellraw @a {text:"Goto www.findminecraft.com for 43 diamonds!"}"
type=command,ID="/tellraw @a {text:"Goto www.findminecraft.com for 12 diamonds!"}"
type=command,ID="/tellraw @a {text:"Goto www.findminecraft.com for 45 diamonds!"}"

/Wishing Wells
group(type=structure,ID=diamond_wishing_well;type=message,ID="A wishing well? Maybe you should not throw in a coin...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_diamond,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$8Your diamond is wasted!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=command,ID=\"/kill @a[r=10]\")"]))@luck=-1
group(type=structure,ID=diamond_wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName d?iamond 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_diamond,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$aYour diamond wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond_block,amount=#rand(8,16),posY='#'bPosY+10,posOffset='#'circleOffset(2);type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=10,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(4,12),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2
group(type=structure,ID=diamond_wishing_well;type=message,ID="A wishing well? Maybe you should throw in a coin...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_diamond,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$4Have Some Free Beacons!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FallingSand,NBTTag=(Block=beacon,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=30;type=entity,ID=FallingSand,NBTTag=(Block=beacon,Motion='#'randLaunchMotion),posY='#'bPosY+7,amount=20;type=entity,ID=beacon,amount=#rand(5,10),posY='#'bPosY+10,posOffset='#'circleOffset(10))"]))@luck=-2
group(type=structure,ID=diamond_wishing_well;type=message,ID="A wishing well? Maybe you should throw in a diamond...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_diamond,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$6Your Death wish didn't come true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;ID=carrot,amount=#rand(60,70),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=1
group(type=structure,ID=diamond_wishing_well;type=message,ID="A wishing well? Maybe you should really not throw in a coin...";type=command,ID="/give #pName diamond 1 0 {display:{Name:\"$6Coin\"}}";type=block,ID=lucky:lucky_block_diamond,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bSurprising, isn't it?\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=Creeper,amount=#rand(40,50),NBTTag=(powered=1),posOffset='#'circleOffset(3),posY='#'bPosY+10)"]))@luck=-2
